﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeHouse.Server.Dto;
using LeHouse.Server.Dal;
namespace LeHouse.Server.Service
{
    public class Collateral_SitePictureService : BaseService<Collateral_SitePicture>
    {
        Collateral_SitePictureDAL bll = new Collateral_SitePictureDAL();
        /// <summary>
        ///图片表的的业务逻辑层
        /// </summary>
        protected override GenericBaseDAL<Collateral_SitePicture> Dal
        {
            get { return new Collateral_SitePictureDAL(); }
        }
        /// <summary>
        /// 根据报告号和图片的上传控件的地址去查询图片表有没该条记录
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public int SitePicturecount(Collateral_SitePicture s)
        {
            return bll.SitePicturecount(s);
        }
        /// <summary>
        /// 根据图片的上传控件的地址去查询图片表该条记录
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public Collateral_SitePicture returnSP_pid(string SP_Addr)
        {
            return bll.returnSP_pid(SP_Addr);
        }
        /// <summary>
        /// 根据报告号查询图片表的所有的记录
        /// </summary>
        /// <param name="P_ReportNumber"></param>
        /// <returns></returns>
        public List<Collateral_SitePicture> PictureShow(string s)
        {
            return bll.PictureShow(s);
           
        }
    }
}
